/**
 * @file Font/index.css
 * @description 字体导航页面特定样式
 * @copyright 版权所有 (c) 2025 UIED技术团队
 * @website https://fsuied.com
 * @license MIT
 * @version 1.0.0
 */

/* 字体页面特定样式 */
.font-page {
  /* 字体页面主题色调 - 紫色 */
  --primary-color: #9B59B6;
  --primary-hover: #8E44AD;
  --primary-light: #BB7EDB;
  /* 继承通用页面样式，添加特定的字体主题色调 */
}

/* 字体工具分类标签统一样式 */
.font-page .tool-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 0.0625rem solid color-mix(in srgb, var(--border-color) 40%, transparent 60%);
  background: color-mix(in srgb, var(--background-light) 60%, transparent 40%);
  color: var(--text-quaternary, #9ca3af);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.font-page .tool-tag:hover {
  background: color-mix(in srgb, var(--primary-light) 60%, transparent 40%);
  color: color-mix(in srgb, var(--primary-color) 80%, transparent 20%);
  opacity: 1;
}

/* 全站搜索提示样式 */
.global-search-tip {
  text-align: center;
  padding: 0.75rem 1rem;
  margin: -1rem auto 1rem;
  max-width: 800px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
}

.global-search-tip p {
  margin: 0;
}

.inline-search-link {
  background: none;
  border: none;
  color: var(--primary-color, #9B59B6);
  font-weight: 500;
  cursor: pointer;
  padding: 0 0.25rem;
  text-decoration: underline;
  font-size: 0.875rem;
}

.inline-search-link:hover {
  color: var(--primary-hover, #8E44AD);
}

/* 移除暗黑模式适配后的清理 */

/* 移动端适配 */
@media (max-width: 768px) {
  .global-search-tip {
    font-size: 0.75rem;
    padding: 0.5rem;
    margin: -0.5rem auto 0.5rem;
  }
} 

/* ===== 字体文章样式卡片 - 类似设计文章的展示样式 ===== */

/* 字体文章网格布局 */
.font-articles-grid {
  display: grid;
  gap: 1rem;
  /* 桌面端：6列网格 */
  grid-template-columns: repeat(6, 1fr);
  margin: 1rem 0;
}

/* 大屏幕优化 */
@media (min-width: 1440px) {
  .font-articles-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 1920px) {
  .font-articles-grid {
    gap: 1.5rem;
  }
}

/* 平板端适配 */
@media (max-width: 1024px) {
  .font-articles-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .font-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0.75rem 0;
  }
}

/* 字体文章卡片 */
.font-article-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.font-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(155, 89, 182, 0.2);
}

/* 移动端卡片优化 */
@media (max-width: 768px) {
  .font-article-card {
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
  }

  .font-article-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  }
}

/* 字体文章图片容器 */
.font-article-image-container {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 移动端图片容器 */
@media (max-width: 768px) {
  .font-article-image-container {
    aspect-ratio: 4/3;
  }
}

/* 字体文章图片 */
.font-article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.font-article-card:hover .font-article-image {
  transform: scale(1.05);
}

/* 字体文章图片占位符 */
.font-article-image-fallback {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* 字体文章内容区域 */
.font-article-content {
  padding: 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 字体文章标题 */
.font-article-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.font-article-title-text {
  transition: color 0.2s ease;
}

.font-article-card:hover .font-article-title-text {
  color: var(--primary-color);
}

/* 移动端标题优化 */
@media (max-width: 768px) {
  .font-article-title {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }

  .font-article-content {
    padding: 0.75rem;
    gap: 0.375rem;
  }
}

/* 字体文章描述 */
.font-article-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 字体文章标签 */
.font-article-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.font-article-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  background: rgba(155, 89, 182, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(155, 89, 182, 0.2);
  transition: all 0.2s ease;
}

.font-article-card:hover .font-article-tag {
  background: rgba(155, 89, 182, 0.15);
  border-color: rgba(155, 89, 182, 0.3);
}

/* 移动端标签优化 */
@media (max-width: 768px) {
  .font-article-tag {
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
  }
} 